package com.lzy.masshappy.controller;

import com.lzy.masshappy.model.req.LoginReq;
import com.lzy.masshappy.model.resp.R;
import com.lzy.masshappy.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {

    @Autowired
    private AuthService authService;

    @RequestMapping("/login")
    public R login(@RequestBody LoginReq loginReq) {
//        String token = authService.login(loginReq);
//        return R.success(token);
        return R.success();
    }

    @RequestMapping("/logout")
    public R logout() {
        return R.success();
    }

    @RequestMapping("/register")
    public R register() {
        return R.success();
    }
}
